﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ResumenParteDiario : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ddlFechaDesde.Value = DateTime.Today.AddDays(-1 * (DateTime.Today.Day-1));
            ddlFechaHasta.Value = DateTime.Today;
        }
    }
    protected void dsReporte_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {
        if (!IsPostBack)
        {
           e.Cancel = true;
        }
    }
    protected void btnGenerar_Click(object sender, EventArgs e)
    {
        gvResumen.DataBind();
    }
    protected void expExcel_Click(object sender, EventArgs e)
    {
        gvExport.WriteXlsToResponse();
    }
    protected void expPDF_Click(object sender, EventArgs e)
    {
        gvExport.WritePdfToResponse();
    }
}